<div class="modal fade" id="user-add" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title pull-left" id="user-add-modal-title">新增用户</h3>
            </div>
            <div class="modal-body">
                <form id="user-add-form" class="form-horizontal">
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="username">用户名:</label>
                    <div class="col-md-5">
                       <input type="text" name="username" class="form-control" placeholder="请输入用户名">
                       <input type="hidden" name="oldusername" class="form-control">
                       <input type="hidden" name="userId" class="form-control">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="password">密码:</label>
                    <div class="col-md-5">
                      <input type="text" name="password" value="123456" readonly class="form-control">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="email">邮箱:</label>
                    <div class="col-md-5">
                       <input type="text" name="email" class="form-control">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="rolesSelect">角色:</label>
                    <div class="col-md-5">
                       <select multiple="multiple" name="rolesSelect" class="multiple-select"></select>
                       <input name="roles" type="hidden"/>
                    </div>
                  </div>  
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="status">状态:</label>
                    <div class="col-md-5">
                      <label class="radio-inline" for="status-radio1">
                        <input type="radio" id="status-radio1" name="status" value="1" checked>
                        可用
                      </label>
                      <label class="radio-inline" for="status-radio2">
                        <input type="radio" id="status-radio2" name="status" value="0">
                        禁用
                      </label>
                    </div>
                  </div>   
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="rolesSelect">性别:</label>
                    <div class="col-md-5">
                      <label class="radio-inline" for="ssex-radio1">
                        <input type="radio" id="ssex-radio1" name="ssex" value="0" checked>
                        男
                      </label>
                      <label class="radio-inline" for="ssex-radio2">
                        <input type="radio" id="ssex-radio2" name="ssex" value="1">
                        女
                      </label>
                      <label class="radio-inline" for="ssex-radio3">
                        <input type="radio" id="ssex-radio3" name="ssex" value="2">
                        保密
                      </label>                      
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-md-2 control-label" for="rolesSelect">部门:</label>
                    <div class="col-md-5">
                      <div id="deptTree"></div>
                      <input type="hidden" name="deptId">
                    </div>
                  </div>                                                                     
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="user-add-button" name="save">保存</button>
                <button type="button" class="btn btn-default" id="user-close-button" data-dismiss="modal">关闭</button>
                <button class="btn-hide"></button>
            </div>
        </div>
    </div>
</div>
<script data-th-src="@{/js/app/admin/system/user/userAdd.js}"></script>